package club.pchome.utils;

import cn.hutool.core.date.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author lenli
 * @date 16-8-11
 */
@Data
public class JwtToken {
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    @ApiModelProperty(value = "手机号")
    private String cellPhone;
    @ApiModelProperty(value = "过期时间")
    private long expire;
    @ApiModelProperty(value = "设备")
    private String device="pc";
    @ApiModelProperty(value = "接口名")
    private String method; //接口名。例如: user.login
    @ApiModelProperty(value = "时间戳")
    private String timestamp = DateUtil.format(new Date(),"yyyy-MM-dd hh:mm:ss");
    @ApiModelProperty(value = "票据")
    private String token;
}
